package com.atguigu.eduservice.openfeign.impl;

import com.atguigu.commonutils.R;
import com.atguigu.eduservice.openfeign.VodClient;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class VodFileDegradeFeignClient implements VodClient {

    @Override
    public R removeVideo(String videoId) {
        return R.error().message("删除视频失败，原因：vod服务器连接失败，feign服务降级调用该方法");
    }

    @Override
    public R removeVideoList(List<String> videoIdList) {
        return R.error().message("删除视频失败，原因：vod服务器连接失败，feign服务降级调用该方法");
    }
}
